﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Micronet.OpenWeb.Com.Controls;
using Micronet.OpenWeb.Com.BLL;
using Micronet.OpenWeb.Common;
using Micronet.OpenWeb.Utils;

namespace Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality
{
    public partial class WebUserControl1 : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (OwConstants.QueryString.ID.OwQsIsExist())
            {
                OpenHomeProfileMaritalProcessDV.DefaultMode = DetailsViewMode.Edit;
               // Response.Redirect("/Admin/Views/Site/HomeProfileMaritalProcessAdmin.aspx");
            }
            else
            {
                OpenHomeProfileMaritalProcessDV.DefaultMode = DetailsViewMode.Insert;
              //  Response.Redirect("/Admin/Views/Site/HomeProfileMaritalProcessAdmin.aspx");
            }
        }
        protected void OwMaritalStatusCbb_Init(object sender, EventArgs e)
        {

            OwComboBox cbb = sender as OwComboBox;
            cbb.OwDataSourceBindFromType<OwEnum.MaritalStatus>(useLanguage: false);
        }

       
    }
}